home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / fly8111-.000 / fly8111- / fly8 / parms.h < prev    next >
C/C++ Source or Header  |  1979-12-31  |  1KB  |  72 lines

  1. /* --------------------------------- parms.h -------------------------------- */
  2.  
  3. /* This is part of the flight simulator 'fly8'.
  4.  * Author: Eyal Lebedinsky (eyal@ise.canberra.edu.au).
  5. */
  6.  
  7. /* Common header for plane parm modules.
  8. */
  9.  
  10. #ifndef FLY8_PARMS
  11. #define FLY8_PARMS
  12.  
  13. #include "colors.h"
  14. #include "shape.h"
  15.  
  16. #define    VONE        16
  17. #define    D180        32768
  18. #define    D90        16384
  19. #define    VD90        (D90/VONE)
  20. #define    VD180        (VD90*2)
  21. #define    VD360        (VD90*4)
  22. #define    DEG2ANG(x)    ((x)*D90/90)
  23.  
  24. #define    FONE        16384
  25. #define    FCON(c)        (FONE*(c))
  26.  
  27. #define    HUD_TYPE    256
  28. #define    HUD_CLASSIC    (0*HUD_TYPE)
  29. #define    HUD_FA18    (1*HUD_TYPE)
  30. #define    HUD_F16        (2*HUD_TYPE)
  31. #define    HUD_F15        (3*HUD_TYPE)
  32. #define    HUD_FLIR    (4*HUD_TYPE)
  33.  
  34. #define MODEL_BASIC    0
  35. #define MODEL_CLASSIC    1
  36. #define MODEL_XPLANE    2
  37. #define MODEL_YPLANE    3
  38. #define MODEL_FPLANE    4
  39.  
  40. #define F(x)        FCON(x)
  41. #define F10(x)        FCON(x/10)
  42. #define VV(x)        (VONE*VONE*(x))
  43. #define V(x)        (VONE*(x))
  44. #define G        9.810
  45. #define D(x)        DEG2ANG(x)
  46. #define DV(x)        ((x)*VD90/90)
  47. #define I10(x)        ((x)/10)
  48.  
  49. #define O_EOF        -1
  50. #define O_GROUND     0
  51. #define O_PLANE         1
  52. #define O_BOX         2
  53. #define O_RUNWAY     3
  54. #define O_M61         4
  55. #define O_TARGET     5
  56. #define O_BROKEN     6
  57. #define O_VIEWER     7
  58. #define O_CHUTE         8
  59. #define O_HOUSE         9
  60. #define O_TOWER        10
  61. #define O_LOW        11
  62. #define O_GTARGET    12
  63. #define O_MK82        13
  64. #define O_CRATER    14
  65. #define O_SMOKE        15
  66.  
  67. #define O_INT        16
  68. #define O_LOCAL        (O_INT+5)
  69. #define O_DEFINE    0x1000
  70.  
  71. #endif
  72.